<div class="table-body">
    <table id="balanceTable" lay-filter="balanceTable"></table>
</div>

<script>
    layui.use(['form', 'table'], function () {
        var tableIn =layui.table.render({
            elem: '#balanceTable',
            height: 'full-99',
            cellMinWidth: '80',
            url: "{:url('userTotal')}",
            id: 'balanceTable',
            totalRow: true,
            cols: [[
                { type: 'numbers'},
                { field: 'timeN', align: 'center', title: '时间' ,width:250,totalRowText:'Total：'},
                { field: 'user_num', align: 'right',  title: '注册人数'},
                { field: 'card_num', align: 'right',  title: '开卡数量'},
                { field: 'open_amount', title: '开卡服务费($)', align:"right",
                    style:'color:#FF5722;font-weight:bold',totalRow: true},
                { field: 'server_amount', title: '卡充值服务费($)', align:"right",
                    style:'color:#FF5722;font-weight:bold',totalRow: true},
                { field: 'refund_amount', title: '卡退款服务费($)', align:"right",
                    style:'color:#FF5722;font-weight:bold',totalRow: true},
                { field: 'fund_amount', title: '充值金额($)', align:"right",
                    style:'color:#FF5722;font-weight:bold',totalRow: true},
                { field: 'post_amount', title: 'Posted金额($)', align:"right",
                    style:'color:#FF5722;font-weight:bold',totalRow: true},
                { field: 'credit_amount', title: 'Credit金额($)-银12', align:"right",
                    style:'color:#FF5722;font-weight:bold',totalRow: true},
                { field: 'credit_amount3', title: 'Credit金额($)-银3', align:"right",
                    style:'color:#FF5722;font-weight:bold',totalRow: true},
            ]],
            page: true,
            limit: 1000,
            limits: [1000],
        });
    });
</script>